package com.me.bean;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

public class Xy implements Parcelable {

    public long id;

    public long time;

    public int high;

    public int low;

    public Xy() {

    }

    protected Xy(Parcel in) {
        id = in.readLong();
        time = in.readLong();
        high = in.readInt();
        low = in.readInt();
    }

    public static final Creator<Xy> CREATOR = new Creator<Xy>() {
        @Override
        public Xy createFromParcel(Parcel in) {
            return new Xy(in);
        }

        @Override
        public Xy[] newArray(int size) {
            return new Xy[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel parcel, int i) {
        parcel.writeLong(id);
        parcel.writeLong(time);
        parcel.writeInt(high);
        parcel.writeInt(low);
    }
}
